/**
 * preload函数
 */

// 选择对话框文件
export const fileSelect = (params) => window.versions.fileSelect(params)

/**
 * GRPC
 */

// 获取上传列表
export const getUploadListGRPC = () => window.versions.getUploadListGRPC()
// 获取上传完成列表
export const getFinishUploadListGRPC = () => window.versions.getFinishUploadListGRPC()
// 开始上传文件
export const addUploadGRPC = (params) => window.versions.addUploadGRPC(params)
// 暂停上传
export const pauseUploadGRPC = (params) => window.versions.pauseUploadGRPC(params)
// 恢复上传
export const resumeUploadGRPC = (params) => window.versions.resumeUploadGRPC(params)
// 移除上传
export const deleteUploadGRPC = (params) => window.versions.deleteUploadGRPC(params)
// 根据id获取状态
export const getStateByIDGRPC = (params) => window.versions.getStateByIDGRPC(params)
// 删除全部上传
export const deleteAllUploadGRPC = () => window.versions.deleteAllUploadGRPC()
// 暂停全部上传
export const pauseAllUploadGRPC = (params) => window.versions.pauseAllUploadGRPC(params)
// 恢复全部上传
export const resumeAllUploadGRPC = () => window.versions.resumeAllUploadGRPC()
// 设置传输设置
export const setTransSettingGRPC = (params) => window.versions.setTransSettingGRPC(params)
// 获取传输设置
export const getTransSettingGRPC = () => window.versions.getTransSettingGRPC()